To use the services of the base image decompressor, your image decompressor component must open a connection to the base image decompressor component. Listing 1 illustrates how to make the connection.
Listing 1 Connecting to the base image decompressor component
CodecComponent baseCodec;
OSErr err;
err = OpenADefaultComponent (decompressorComponentType,
kBaseCodecType,
&baseCodec);
if (err) goto bail;
err = ComponentSetTarget (baseCodec,
self);
if (err) goto bail;